from selenium.webdriver.common.by import By
from base.base import Base

class Page1(Base):
    def url_loc(self):
        self.url('https://www.baidu.com/')

    dy = (By.ID,'chat-submit-button')
    def dy_loc(self):
        return self.text(self.dy)

    input = (By.ID,'chat-textarea')
    def input_loc(self):
        self.send_keys(self.input,'我喜欢软件测试')

    dianji = (By.ID,'chat-submit-button')
    def dianji_loc(self):
        self.click(self.dianji)

    dy1 = (By.ID,'content_left')
    def dy1_loc(self):
        return self.text(self.dy1)

